﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace _006_007详解类型变量与与对象
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //Type myType = typeof(Form);
            //Console.WriteLine(myType.BaseType.Name);
            //栈溢出
            //BadGuy bg = new BadGuy();
            //bg.BadMethod();

            unsafe
            {
                int* p = stackalloc int[9999999];
            }
           

        }
    }

    class BadGuy
    {
        public void BadMethod()
        {
            int X = 100;
            BadMethod();
        }
    }
}
